package com.zlzlib.libindexpy.bean;

import com.zlzlib.libindex.bean.BaseIndexBean;

/**
 * Created by zlz on 2019/11/4.
 * 汉语拼音转化的实体
 */
public abstract class BasePyIndexBean extends BaseIndexBean {

    private String pinyin = "";// 拼音

    public String getPinyin() {
        return pinyin;
    }

    public BasePyIndexBean setPinyin(String pinyin) {
        this.pinyin = pinyin;
        return this;
    }

    //是否需要被转化成拼音
    //默认应该是需要的
    public boolean isNeedToPinyin() {
        return true;
    }

    //需要转化成拼音的目标字段
    public abstract String needToPinyinString();

    @Override
    public boolean isShowTitle() {
        return true;
    }
}
